from typing import Dict, List, Union, Tuple

# 定义类型别名
UserId = int
UserName = str
UserInfo = Dict[str, Union[str, int, bool]]
Point = Tuple[float, float]
Points = List[Point]

# 使用类型别名
def get_user(user_id: UserId) -> UserInfo:
    return {"name": "Alice", "age": 30, "active": True}

def calculate_distance(points: Points) -> float:
    # 计算距离的逻辑
    return 0.0